package cn.wolfcode.luowowo.article.service;


import cn.wolfcode.luowowo.article.domain.TicketDetail;

import java.math.BigDecimal;
import java.util.List;

/**
 * 门票票价服务
 */
public interface ITicketDetailService {
    /**
     * 增加门票票价
     * @param ticketDetail
     */
    void save(TicketDetail ticketDetail);

    /**
     * 删除门票票价
     * @param ticketDetailId
     */
    void delete(Long ticketDetailId);

    /**
     * 修改门票票价
     * @param ticketDetail
     */
    void update(TicketDetail ticketDetail);

    /**
     * 查询单个门票票价
     * @param ticketDetailId
     * @return
     */
    TicketDetail get(Long ticketDetailId);

    /**
     * 查询所有门票票价
     * @return
     */
    List<TicketDetail> list();

    /**
     * 查询对应景点及类型门票
     * @param ticketId
     * @param type
     * @return
     */
    List<TicketDetail> listByPrimaryKey(Long ticketId, int type);

    /**
     * 查询对应景点最低票价
     * @param ticketId
     * @return
     */
    BigDecimal minPrice(Long ticketId);
}
